package com.way.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "打招呼")
@RequestMapping("hello")
@RestController
public class HelloController {

    @Operation(summary = "问好")
    @GetMapping("/")
    public String hello(@Parameter(description = "姓名") @RequestParam("name") String name) {
        return "hello " + name;
    }

}
